package extendsDemo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 阿宾
 * Date: 2024-09-28
 * Time: 15:20
 */
public class Test {
    public static void main(String[] args) {

        //创建对象

        Cat1 cat1 = new Cat1();
        cat1.eat();
        cat1.drink();
        cat1.catchMouse();

        Dog1 dog1 = new Dog1();
        dog1.eat();
        dog1.drink();
        dog1.lookHome();
        dog1.action();

        System.out.println();
    }
}
